package com.cm.caseManagement.pojo.entity;
import com.cm.caseManagement.annotation.Excel;
import com.cm.caseManagement.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 通用码对象 cm_general_code_table
 *
 * @author ruoyi
 * @date 2025-10-05
 */
public class CmGeneralCodeTable extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 外部唯一id */
    @Excel(name = "外部唯一id")
    private String publicId;

    /** 码表类型 */
    @Excel(name = "码表类型")
    private String type;

    /** 码值 */
    @Excel(name = "码值")
    private String code;

    /** 码值含义 */
    @Excel(name = "码值含义")
    private String value;

    /** 排序号 */
    @Excel(name = "排序号")
    private Long sortOrder;

    /** 是否可用：1-可用，0-不可用 */
    @Excel(name = "是否可用：1-可用，0-不可用")
    private Integer isAvailable;

    /** 父级码值 */
    @Excel(name = "父级码值")
    private String parentCode;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPublicId(String publicId)
    {
        this.publicId = publicId;
    }

    public String getPublicId()
    {
        return publicId;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }

    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }

    public void setValue(String value)
    {
        this.value = value;
    }

    public String getValue()
    {
        return value;
    }

    public void setSortOrder(Long sortOrder)
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder()
    {
        return sortOrder;
    }

    public void setIsAvailable(Integer isAvailable)
    {
        this.isAvailable = isAvailable;
    }

    public Integer getIsAvailable()
    {
        return isAvailable;
    }

    public void setParentCode(String parentCode)
    {
        this.parentCode = parentCode;
    }

    public String getParentCode()
    {
        return parentCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("publicId", getPublicId())
            .append("type", getType())
            .append("code", getCode())
            .append("value", getValue())
            .append("sortOrder", getSortOrder())
            .append("isAvailable", getIsAvailable())
            .append("remark", getRemark())
            .append("parentCode", getParentCode())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
